﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Main.Master" AutoEventWireup="true" CodeBehind="MainOrderManagement.aspx.cs" Inherits="RestaurantManagerWebApp.Pages.OrderManagement.MainOrderManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style4 {
        text-align: center;
        width: 259px;
    }
    .auto-style5 {
        text-align: center;
        width: 113px;
    }
    .auto-style7 {
        text-align: center;
        width: 99px;
    }
    .auto-style8 {
        width: 99px;
            text-align: center;
        }
    .auto-style9 {
        text-align: center;
    }
        .auto-style10 {
            text-align: center;
            width: 113px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p style="text-align: center">
    <asp:Label ID="Label7" runat="server" Text="Order Management" Font-Size="X-Large"></asp:Label>
        </p>
<div style="margin-left:auto;margin-right:auto;">
    <table>
        <tr>
            <td>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1_Order" ForeColor="Black" GridLines="Vertical" Width="502px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="o_date" HeaderText="Order Date" SortExpression="o_date">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="table_no" HeaderText="Table Num" SortExpression="table_no">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="total_price" HeaderText="Total Price ($)" SortExpression="total_price">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:CommandField ShowSelectButton="True">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:CommandField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>

            </td>
            </tr>
    </table>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1_DishQuantity" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [d_name], [quantity], [price] FROM [Dish_Quantity]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource1_Order" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [table_no], [total_price], [o_date] FROM [Orders]"></asp:SqlDataSource>

    <br />
<br />
<br />
<br />
<br />

    <table style="width: 985px" border="1">
        <tr>
            <td class="auto-style4">
                <asp:Label ID="Label5" runat="server" Text="Dish Name" ForeColor="Blue"></asp:Label>
            </td>
            <td class="auto-style5">
                <asp:Label ID="Label3" runat="server" Text="Quantity" ForeColor="Blue"></asp:Label>
            </td>
            <td class="auto-style7">
                <asp:Label ID="Label4" runat="server" Text="Price($)" ForeColor="Blue"></asp:Label>
            </td>
            <td class="auto-style9">
                <asp:Label ID="Label6" runat="server" Text="Special Request" ForeColor="Blue"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style4">Chicken Rice</td>
            <td class="auto-style10">02</td>
            <td class="auto-style8">7.00</td>
            <td class="auto-style9"></td>
        </tr>
        <tr>
            <td class="auto-style4">BeeHoon</td>
            <td class="auto-style10">01</td>
            <td class="auto-style8">3.50</td>
            <td class="auto-style9"></td>
        </tr>
        <tr>
            <td class="auto-style4">Chicken Chop</td>
            <td class="auto-style10">02</td>
            <td class="auto-style8">10.00</td>
            <td class="auto-style9">Change salad to fries</td>
        </tr>
        <tr>
            <td class="auto-style4">Fish n Chips</td>
            <td class="auto-style10">02</td>
            <td class="auto-style8">10.00</td>
            <td class="auto-style9"></td>
        </tr>
    </table>
        
</asp:Content>
